package com.xuecheng.ucenter.dao;

import com.xuecheng.framework.domain.ucenter.XcCompanyUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface XcCompanyUserRepository extends JpaRepository<XcCompanyUser,String> {
    /**
     * 根据用户id查询一个用户绑定的公司id
     * @param userId 用户id
     * @return {@link XcCompanyUser}
     */
    XcCompanyUser findByUserId(String userId);
}
